<%--
  Created by IntelliJ IDEA.
  User: 40334
  Date: 2023/2/4
  Time: 20:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="styles/common.css"/>
</head>
<body>
<div class="page-content">
    <div class="content-nav">
        会议预定 > 修改会议室信息
    </div>
    <form action="MainServlet" method="post">
        <input type="hidden" name="dest" value="room.changeRoom"/>
        <input type="hidden" name="roomno" value="${requestScope.room.roomno}">
        <fieldset>
            <legend>会议室信息</legend>
            <table class="formtable">
                <tr>
                    <td>门牌号:</td>
                    <td>
                        <input id="roomnumber" name="room_number" type="text" value="${requestScope.room.roomNumber}" maxlength="10"/>
                    </td>
                </tr>
                <tr>
                    <td>会议室名称:</td>
                    <td>
                        <input id="capacity" type="text" name="room_name" value="${requestScope.room.roomName}" maxlength="20"/>
                    </td>
                </tr>
                <tr>
                    <td>最多容纳人数：</td>
                    <td>
                        <input id="roomcapacity" name="person_count" value="${requestScope.room.personCount}" type="text"/>
                    </td>
                </tr>
                <tr>
                    <td>当前状态：</td>
                    <td>

                        <input type="radio" name="state" value="1" <c:if test="${requestScope.room.state eq 1}"> checked </c:if> /><label >启用</label>
                        <input type="radio" name="state" value="0" <c:if test="${requestScope.room.state eq 0}"> checked </c:if> /><label >停用</label>
                        <input type="radio" name="state" value="2" <c:if test="${requestScope.room.state eq 2}"> checked </c:if> /><label >删除</label>
                    </td>
                </tr>
                <tr>
                    <td>备注：</td>
                    <td>
                        <textarea id="description" name="note" maxlength="200" rows="5" cols="60" >${requestScope.room.note}</textarea>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="command">
                        <input type="submit" value="确认修改" class="clickbutton"/>
                        <input type="button" class="clickbutton" value="返回" onclick="window.history.back();"/>
                    </td>
                </tr>
            </table>
        </fieldset>
    </form>
</div>
</body>
</html>
